//
//  SPLiveStatusTableViewCell.m
//  panzer
//
//  Created by 还带大道 on 2018/10/21.
//  Copyright © 2018年 还带大道. All rights reserved.
//

#import "SPLiveStatusTableViewCell.h"

@interface SPLiveStatusTableViewCell()
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *postion;
@property (weak, nonatomic) IBOutlet UIImageView *pic;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *des;
@property (weak, nonatomic) IBOutlet UILabel *count;
@property (weak, nonatomic) IBOutlet UILabel *price_new;
@property (weak, nonatomic) IBOutlet UILabel *price_old;
@property (weak, nonatomic) IBOutlet UIImageView *head;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *peopleCount;
@property (weak, nonatomic) IBOutlet UILabel *level;
@property (weak, nonatomic) IBOutlet UILabel *time_start;

@end

@implementation SPLiveStatusTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    _bgView.backgroundColor = [UIColor whiteColor];
    
    _bgView.layer.shadowColor = RZ_COLOR_ALPHA(208, 208, 208, 0.5).CGColor;
    _bgView.layer.cornerRadius = 5;
    _bgView.layer.shadowOffset = CGSizeMake(0,1);
    _bgView.layer.shadowOpacity = 1;
    _bgView.layer.shadowRadius = 4;
}

- (void)setType:(LiveType)type
{
    _type = type;
    if(_type == LiveType_JJKB){
        _time.text = @"倒计时 1:05:36";
        _time.textColor = RZ_COLOR(233, 42, 42);
    }else{
        _time.text = @"已直播20分钟";
        
        _time.textColor = RZ_COLOR(52, 131, 251);
    }
}

@end
